<include file="public@header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('ceping/index')}">所有测评任务</a></li>
			<li class="active"><a href="javascript:;">添加测评任务</a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('ceping/addPost')}">
			<div class="form-group">
				<label for="input-name" class="col-sm-2 control-label">任务名称<span class="form-required">*</span></label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-name" name="product_name">
				</div>
			</div>
			<div class="form-group">
				<label for="input-commission" class="col-sm-2 control-label">任务佣金<span class="form-required">*</span></label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-commission" name="commission">
				</div>
			</div>
			<div class="form-group">
				<label for="input-commission_type" class="col-sm-2 control-label">佣金单位<span class="form-required">*</span></label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" placeholder="请输入$/￥等" id="input-commission_type" name="commission_type">
				</div>
			</div>

			<div class="form-group">
				<label for="input-category" class="col-sm-2 control-label">所属分类</label>
				<div class="col-md-6 col-sm-10">
					<select class="form-control" name="category_id" id="input-category">
						<option>请选择分类</option>
						<volist name="categories" id="v">
							<option value="{$v.id}">{$v.name}</option>
						</volist>
					</select>
				</div>
			</div>

			<div class="form-group">
				<label for="input-image" class="col-sm-2 control-label">产品图片<span class="form-required">*</span></label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-image" name="product_image">
					<a href="javascript:uploadOneImage('图片上传','#input-image');">上传图片</a>
				</div>
			</div>
			<div class="form-group">
				<label for="input-link" class="col-sm-2 control-label">产品链接<span class="form-required">*</span></label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-link" name="product_link">
				</div>
			</div>

			<div class="form-group">
				<label for="input-shop" class="col-sm-2 control-label">所属店铺<span class="form-required">*</span></label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-shop" name="shop_name">
				</div>
			</div>

			<div class="form-group">
				<label for="input-simg" class="col-sm-2 control-label">店铺截图<span class="form-required">*</span></label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-simg" name="shop_image">
					<a href="javascript:uploadOneImage('图片上传','#input-simg');">上传图片</a>
				</div>
			</div>

			<div class="form-group">
				<label for="input-num" class="col-sm-2 control-label">测评数量<span class="form-required">*</span></label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-num" name="need_num">
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-2 control-label">状态<span class="form-required">*</span></label>
				<div class="col-md-6 col-sm-10">
					<label for="status-able"><input checked class="form-control" id="status-able" type="radio" name="status" value="1">可用</label>
					<label style="margin-left: 15px" for="status-dis"><input class="form-control" id="status-dis" type="radio" name="status" value="0">禁用</label>
				</div>
			</div>

			<div class="form-group">
				<label for="input-description" class="col-sm-2 control-label">备注</label>
				<div class="col-md-6 col-sm-10">
					<textarea class="form-control" name="remark" id="input-description" ></textarea>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('ADD')}</button>
					<a class="btn btn-default" href="javascript:history.back(-1);">{:lang('BACK')}</a>
				</div>
			</div>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>
